//
//  NSArray+Honda.h
//  Honda
//
//  Created by Wang.Xinlei on 4/9/13.
//  Copyright (c) 2013 HeninHoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSArray (Honda)

+ (BOOL)validArray:(NSArray *)array;
+ (BOOL)invalidArray:(NSArray *)array;

+ (NSArray *)arrayWithArrayOrNil:(NSArray *)arrayOrNil;

- (id)initWithArrayOrNil:(NSArray *)arrayOrNil;

- (id)firstObject;
- (id)nilOrObjectAtIndex:(NSUInteger)index;

@end


@interface NSMutableArray (Honda)

- (void)addNilOrObject:(id)anObject;
- (void)addUniqueObject:(id)anObject;
- (void)insertNilOrObject:(id)anObject atIndex:(NSUInteger)index;
- (void)insertUniqueObject:(id)anObject atIndex:(NSUInteger)index;

@end
